class A{
    data=[]
    constructor(_data){
        this.data = _data
    }
}

let arr = [{prop1:1},{prop1:2}]
let a = new A(arr)

if(a.data === arr){
    console.log("true")
}

arr[0].prop1 = 3
console.log(a.data[0].prop1)